<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>申请页面</title>
    <link rel="stylesheet" href="../../../yl/index.css" />
    <!-- 布局样式 -->
    <link rel="stylesheet" href="../../../yl/style.css" />
    <link rel="stylesheet" href="../../../style/wangeditor.css">
    <link rel="stylesheet" href="../../../yl/mobile.css" />
    <link rel="stylesheet" href="../../../yl/easyui.css" />
    <link rel="stylesheet" href="../../../yl/icon.css" />
</head>

<body>
    <!-- <div id="app"> -->
    <div class="easyui-navpanel" id="app" v-cloak>
        <header>
            <div class="m-toolbar">
                <div class="m-title">查看申请信息</div>
            </div>
        </header>
        <div class="easyui-navpanel panel-body panel-body-nobottom panel-body-noborder" style="height: 3000px"
            id="MainTable" ref="MainTable"
            :data-options="JSON.stringify({ 'TableName': 'subsidy_application', 'form': 'dataForm' ,'primary_key':'Application_SerialNumber' })">
            <div class="yl-main">
                <div class="table_titel">
                    <div class="titel">申请信息</div>
                </div>
                <el-descriptions :column="1" size="large" border>
                    <el-descriptions-item>
                        <template #label>
                            <div class="cell-item">申请日期</div>
                        </template>
                        <el-date-picker disabled v-model="dataForm.Application_Date" format="YYYY-MM-DD"
                            value-format="YYYY-MM-DD" class="borderless-input" type="date" placeholder="请选择种植日期"
                            size="large"></el-date-picker>
                    </el-descriptions-item>
                    <el-descriptions-item>
                        <template #label>
                            <div class="cell-item">申请人</div>
                        </template>
                        <yl-select disabled v-model="dataForm.ID_Card_Number" clearable filterable placeholder="请选择申请人"
                            :options="personal_information" :props="{value:'ID_Card_Number',label:'Personal_Name'}">
                            <el-table-column prop="ID_Card_Number" width="180" show-overflow-tooltip
                                label="身份证号"></el-table-column>
                            <el-table-column prop="Personal_Name" show-overflow-tooltip label="姓名"></el-table-column>
                            <el-table-column prop="Birthday" show-overflow-tooltip label="出生日期"></el-table-column>
                            <el-table-column prop="Gender" label="性别"></el-table-column>
                            <el-table-column prop="Nation" label="民族"></el-table-column>
                            <el-table-column prop="Registered_Residence" show-overflow-tooltip
                                label="籍贯"></el-table-column>
                            <el-table-column prop="Contact_Phone" label="联系方式"></el-table-column>
                        </yl-select>
                    </el-descriptions-item>
                    <el-descriptions-item>
                        <template #label>
                            <div class="cell-item">政策发布年份</div>
                        </template>
                        <el-input-number disabled @change="changeYear" v-model="Year" @change="handleChange"
                            label="年份"></el-input-number>
                    </el-descriptions-item>
                    <el-descriptions-item>
                        <template #label>
                            <div class="cell-item">适用政策</div>
                        </template>
                        <el-select @change="changePolicy" disabled clearable v-model.trim="dataForm.Policy_SerialNumber"
                            placeholder="请选择适用政策" filterable style="width: 100%">
                            <el-option v-for="(item,index) in policy" :key="index" :label="item.Policy_Name"
                                :value="item.Policy_SerialNumber"></el-option>
                        </el-select>
                    </el-descriptions-item>
                </el-descriptions>
                <el-descriptions :column="1" size="large" border>
                    <el-descriptions-item>
                        <template #label>
                            <div class="cell-item">适用土地</div>
                        </template>
                        <el-select disabled clearable @change="changeLand" v-model.trim="dataForm.Land_SerialNumber"
                            placeholder="请选择适用的土地" filterable style="width: 100%">
                            <el-option v-for="(item,index) in land" :key="index"
                                :label="item.Natural_Resource_Name+'(编号：'+item.Land_SerialNumber+')'"
                                :value="item.Land_SerialNumber"></el-option>
                        </el-select>
                    </el-descriptions-item>
                    <el-descriptions-item>
                        <template #label>
                            <div class="cell-item">种植记录</div>
                        </template>
                        <el-select disabled clearable v-model.trim="dataForm.Record_SerialNumber" placeholder="请选择种植记录"
                            filterable style="width: 100%">
                            <el-option v-for="(item,index) in record" :key="index"
                                :label="'种植记录:'+item.Record_SerialNumber+',种植作物:'+item.Crop_Name+''"
                                :value="item.Record_SerialNumber"></el-option>
                        </el-select>
                    </el-descriptions-item>
                </el-descriptions>
                <div>
                    <div class="table_titel">
                        <div class="titel">当前申请补贴政策发放记录</div>
                    </div>
                    <el-table border max-height="450" tooltip-effect="dark" :data="tableData">
                        <el-table-column min-width="180" prop="Distribution_Date" label="发放日期"></el-table-column>
                        <el-table-column min-width="180" prop="Application_Amount" label="发放金额"></el-table-column>
                        <el-table-column min-width="180" prop="Application_Amount1" label="到账金额"></el-table-column>
                        <el-table-column min-width="180" prop="Notes" label="备注"></el-table-column>
                        <el-table-column label="操作" fixed="right" width="160">
                            <template #default="{row}">
                                <div style="display: flex; align-items: center;">
                                    <el-button size="small" :disabled="row.Application_Amount == row.Application_Amount1" :type="row.Application_Amount != row.Application_Amount1? 'success':'info'" style="margin-right: 10px;" @click="handleEdit(row)">
                                        记录到账金额
                                    </el-button>
                                </div>
                            </template>
                        </el-table-column>
                    </el-table>
                </div>
                <el-row>
                    <el-col :span="24">
                        <div style="margin-right: 10px;">
                            <div class="table_titel">
                                <div class="titel">政策详情</div>
                            </div>
                            <el-descriptions :column="2" size="large" border>
                                <el-descriptions-item :span="2">
                                    <template #label>
                                        <div class="cell-item">政策名称</div>
                                    </template>
                                    <el-input disabled v-model="dataForm1.Policy_Name" class="borderless-input"
                                        placeholder="请输入政策名称" />
                                </el-descriptions-item>
                                <el-descriptions-item>
                                    <template #label>
                                        <div class="cell-item">生效日期</div>
                                    </template>
                                    <el-date-picker disabled v-model="dataForm1.Effective_Date" format="YYYY-MM-DD"
                                        value-format="YYYY-MM-DD" class="borderless-input" type="date"
                                        placeholder="请选择生效日期" size="large"></el-date-picker>
                                </el-descriptions-item>
                                <el-descriptions-item>
                                    <template #label>
                                        <div class="cell-item">失效日期</div>
                                    </template>
                                    <el-date-picker disabled v-model="dataForm1.Expiry_Date" format="YYYY-MM-DD"
                                        value-format="YYYY-MM-DD" class="borderless-input" type="date"
                                        placeholder="请选择失效日期" size="large"></el-date-picker>
                                </el-descriptions-item>
                                <el-descriptions-item>
                                    <template #label>
                                        <div class="cell-item">补贴条件</div>
                                    </template>
                                    <el-input type="textarea" :autosize="{ minRows: 4}" disabled v-model="dataForm1.Eligibility_Criteria" class="borderless-input"
                                        placeholder="请输入补贴条件" />
                                </el-descriptions-item>
                            </el-descriptions>
                            <div class="table_titel">
                                <div class="titel">政策明细</div>
                            </div>
                            <el-descriptions :column="2" size="large" border
                                v-for="(item,index) in childDataForm.filter(item => item.Row_Status != '1')"
                                :key="index">
                                <el-descriptions-item>
                                    <template #label>
                                        <div class="cell-item">适用作物</div>
                                    </template>
                                    <el-select disabled clearable v-model.trim="item.Crop_SerialNumber"
                                        placeholder="请选择适用作物" filterable style="width: 100%">
                                        <el-option v-for="(item,index) in crop" :key="index" :label="item.Crop_Name"
                                            :value="item.Crop_SerialNumber"></el-option>
                                    </el-select>
                                </el-descriptions-item>
                                <el-descriptions-item>
                                    <template #label>
                                        <div class="cell-item">补贴金额</div>
                                    </template>
                                    <el-input disabled v-model="item.Subsidy_Amount" class="borderless-input"
                                        placeholder="请输入补贴金额" />
                                </el-descriptions-item>
                                <el-descriptions-item>
                                    <template #label>
                                        <div class="cell-item">生效日期</div>
                                    </template>
                                    <el-date-picker disabled v-model="item.Effective_Date" format="YYYY-MM-DD"
                                        value-format="YYYY-MM-DD" class="borderless-input" type="date"
                                        placeholder="请选择生效日期" size="large"></el-date-picker>
                                </el-descriptions-item>
                                <el-descriptions-item>
                                    <template #label>
                                        <div class="cell-item">失效日期</div>
                                    </template>
                                    <el-date-picker disabled v-model="item.Expiry_Date" format="YYYY-MM-DD"
                                        value-format="YYYY-MM-DD" class="borderless-input" type="date"
                                        placeholder="请选择失效日期" size="large"></el-date-picker>
                                </el-descriptions-item>
                                <el-descriptions-item>
                                    <template #label>
                                        <div class="cell-item">补贴条件</div>
                                    </template>
                                    <el-input type="textarea" :autosize="{ minRows: 4}" disabled v-model="item.Eligibility_Criteria" class="borderless-input"
                                        placeholder="请输入补贴条件" />
                                </el-descriptions-item>
                            </el-descriptions>
                        </div>
                    </el-col>
                    <el-col :span="24">
                        <div style="margin-left: 10px;">
                            <div class="table_titel">
                                <div class="titel">自然资源详情</div>
                            </div>
                            <el-descriptions :column="2" size="large" border>
                                <el-descriptions-item>
                                    <template #label>
                                        <div class="cell-item">自然资源名称</div>
                                    </template>
                                    <el-input disabled v-model="dataForm2.Natural_Resource_Name"
                                        class="borderless-input" placeholder="请输入自然资源名称" />
                                </el-descriptions-item>
                                <el-descriptions-item>
                                    <template #label>
                                        <div class="cell-item">自然资源归属权</div>
                                    </template>
                                    <el-select disabled clearable
                                        v-model.trim="dataForm2.Natural_Resource_Ownership_Rights" placeholder="请选择自然资源"
                                        filterable style="width: 100%">
                                        <el-option v-for="(value,key) in Ownership_Rights" :key="key" :label="value"
                                            :value="key"></el-option>
                                    </el-select>
                                </el-descriptions-item>
                                <el-descriptions-item>
                                    <template #label>
                                        <div class="cell-item">自然资源用途</div>
                                    </template>
                                    <el-cascader disabled class="borderless-input" v-model="cityValue" filterable
                                        :props="{value:'Natural_Resource_Usage_SerialNumber',label:'Natural_Resource_Usage_Name',children:'children'}"
                                        placeholder="请选择自然资源用途" :options="Natural_Resource_Usage"
                                        style="width: 100%"></el-cascader>
                                </el-descriptions-item>
                                <el-descriptions-item>
                                    <template #label>
                                        <div class="cell-item">村行政区</div>
                                    </template>
                                    <el-select disabled clearable v-model.trim="dataForm2.Village_SerialNumber"
                                        placeholder="请选择村行政区" filterable style="width: 100%">
                                        <el-option v-for="(item,index) in village" :key="index" :label="item.Village"
                                            :value="item.VillageNumber"></el-option>
                                    </el-select>
                                </el-descriptions-item>
                                <el-descriptions-item>
                                    <template #label>
                                        <div class="cell-item">面积</div>
                                    </template>
                                    <el-input disabled v-model="dataForm2.Area" class="borderless-input"
                                        placeholder="请输入面积" />
                                </el-descriptions-item>
                                <el-descriptions-item>
                                    <template #label>
                                        <div class="cell-item">质量等级</div>
                                    </template>
                                    <el-select disabled clearable v-model.trim="dataForm2.Quality_Grade"
                                        placeholder="请选择质量等级" filterable style="width: 100%">
                                        <el-option v-for="(item,index) in natural_resources_quality_grade" :key="index"
                                            :label="item.Quality_Grade_Name"
                                            :value="item.Quality_Grade_SerialNumber"></el-option>
                                    </el-select>
                                </el-descriptions-item>
                            </el-descriptions>
                            <div class="table_titel">
                                <div class="titel">种植记录</div>
                            </div>
                            <el-descriptions :column="3" v-for="(item,index) in record" :key="index" size="large"
                                border>
                                <el-descriptions-item>
                                    <template #label>
                                        <div class="cell-item">种植作物</div>
                                    </template>
                                    <el-input disabled v-model="item.Crop_Name" class="borderless-input"
                                        placeholder="请输入种植作物" />
                                </el-descriptions-item>
                                <el-descriptions-item>
                                    <template #label>
                                        <div class="cell-item">收获时间</div>
                                    </template>
                                    <el-input disabled v-model="item.Plate_Date" class="borderless-input"
                                        placeholder="请输入收获时间" />
                                </el-descriptions-item>
                                <el-descriptions-item>
                                    <template #label>
                                        <div class="cell-item">产量</div>
                                    </template>
                                    <el-input disabled v-model="item.Yield" class="borderless-input"
                                        placeholder="请输入产量" />
                                </el-descriptions-item>
                            </el-descriptions>
                            <div class="table_titel">
                                <div class="titel">历史补贴</div>
                            </div>
                            <el-descriptions :column="2" v-for="(item,index) in childDataForm1" :key="index"
                                size="large" border>
                                <el-descriptions-item>
                                    <template #label>
                                        <div class="cell-item">申请日期</div>
                                    </template>
                                    <el-input disabled v-model="item.Application_Date" class="borderless-input"
                                        placeholder="请输入种植作物" />
                                </el-descriptions-item>
                                <el-descriptions-item>
                                    <template #label>
                                        <div class="cell-item">种植作物</div>
                                    </template>
                                    <el-input disabled v-model="item.Crop_Name" class="borderless-input"
                                        placeholder="请输入种植作物" />
                                </el-descriptions-item>
                                <el-descriptions-item>
                                    <template #label>
                                        <div class="cell-item">补贴政策</div>
                                    </template>
                                    <el-input type="textarea" :autosize="{ minRows: 4}" disabled v-model="item.Policy_Name" class="borderless-input"
                                        placeholder="请输入补贴政策" />
                                </el-descriptions-item>
                               
                            </el-descriptions>
                        </div>
                    </el-col>
                </el-row>
            </div>
        </div>
        <footer class="botton-ann">
            <el-button @click="goBack">返回</el-button>
            <!-- <el-button type="primary" plain @click="handleSubmit" :loading="loading">提交</el-button> -->
        </footer>
    </div>
</body>
<script src="../../../utils/utils.js"></script>
<script src="../../../config/config.js"></script>
<script src="../../../utils/compressor.js"></script>
<script src="../../../utils/wangeditor.js"></script>
<script src="../../../utils/mixins.js"></script>
<script src="../../../yl/vue.js"></script>
<script src="../../../yl/index.js"></script>
<script src="../../../yl/zh-cn.mjs"></script>
<script src="../../../yl/index.iife.min.js"></script>
<script src="../../../yl/jquery.min.js"></script>
<script src="../../../utils/jquery.cookie.js"></script>
<script src="../../../yl/jquery.easyui.min.js"></script>
<script src="../../../yl/jquery.easyui.mobile.js"></script>
<script src="../../../yl/moment.min.js"></script>
<script src="../../../api/request.js"></script>
<script src="./js/show.js"></script>

</html>